<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta id="meta1px" name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
     
    </script>
    <!-- <iframe src="http://localhost:9000/#/index/home/hot" frameborder="0" style="width: 800px; height: 600px;"></iframe> -->
    <template id="r" style="height: 600px"></template>

    <div id="'aa"></div>
    <script>
      class WordCount extends HTMLParagraphElement {
        constructor() {
          super();
        }
      }

      var temp = document.querySelector('#r');
      customElements.define('word-count', WordCount, { extends: 'div' });
      fetch('http://localhost:9000/#/index/home/hot').then((res) => {
        const test = res.text();
        test.then((res) => {
          console.log(res, temp);
          temp.innerHTML = res;
        });
      });
    </script>
  </body>
</html>
